package com.xwtec.factory.abstractfactory;

/**
 * @Author: zt
 * @Date: 2021/2/22 23:07
 */
public class ModernFactory extends AbstractFactory {

    @Override
    Food createFood() {
        return new Bread();
    }

    @Override
    Weapon createWeapon() {
        return new AK47();

    }
}
